<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2021-01-14T16:18:59Z</date>
    <groups>
        <group>
            <name>Templates/Applications</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Starline</template>
            <name>Starline</name>
            <groups>
                <group>
                    <name>Templates/Applications</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>System metrics</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>http_requests_period</name>
                    <type>DEPENDENT</type>
                    <key>http_requests_period</key>
                    <delay>0</delay>
                    <history>365d</history>
                    <trends>0</trends>
                    <value_type>FLOAT</value_type>
                    <preprocessing>
                        <step>
                            <type>PROMETHEUS_PATTERN</type>
                            <params>http_requests_period
</params>
                        </step>
                    </preprocessing>
                    <master_item>
                        <key>starline_main</key>
                    </master_item>
                </item>
                <item>
                    <name>starline_main</name>
                    <type>HTTP_AGENT</type>
                    <key>starline_main</key>
                    <delay>3m</delay>
                    <history>0</history>
                    <trends>0</trends>
                    <value_type>TEXT</value_type>
                    <url>http://{HOST.CONN}:{$HOST_PORT}/metrics</url>
                </item>
            </items>
            <discovery_rules>
                <discovery_rule>
                    <name>starline_discovery</name>
                    <type>DEPENDENT</type>
                    <key>starline_discovery</key>
                    <delay>0</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>starline_activity_ts {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_activity_ts[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_activity_ts{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_add_l {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_add_l[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_add_l{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_door {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_door[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_door{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_hbrake {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_hbrake[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_hbrake{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_hijack {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_hijack[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_hijack{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_hood {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_hood[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_hood{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_pbrake {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_pbrake[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_pbrake{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_run {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_run[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_run{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_shock_h {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_shock_h[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_shock_h{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_shock_l {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_shock_l[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_shock_l{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_tilt {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_tilt[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_tilt{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_trunk {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_trunk[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_trunk{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_alarm_state_ts {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_alarm_state_ts[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_alarm_state_ts{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_balance_0_ts {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_balance_0_ts[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_balance_0_ts{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_balance_0_value {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_balance_0_value[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_balance_0_value{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_common_battery {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_common_battery[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_common_battery{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_common_ctemp {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_common_ctemp[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_common_ctemp{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_common_etemp {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_common_etemp[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_common_etemp{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_common_gps_lvl {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_common_gps_lvl[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_common_gps_lvl{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_common_gsm_lvl {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_common_gsm_lvl[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_common_gsm_lvl{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_common_reg_date {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_common_reg_date[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_common_reg_date{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_event_timestamp {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_event_timestamp[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_event_timestamp{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_event_type {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_event_type[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_event_type{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_obd_fuel_percent {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_obd_fuel_percent[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_obd_fuel_percent{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_obd_mileage {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_obd_mileage[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_obd_mileage{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_obd_mileage_delta {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_obd_mileage_delta[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_obd_mileage{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                                <step>
                                    <type>SIMPLE_CHANGE</type>
                                    <params/>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_obd_ts {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_obd_ts[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_obd_ts{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_r_start_battery {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_r_start_battery[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_r_start_battery{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_r_start_cron {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_r_start_cron[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_r_start_cron{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_r_start_period {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_r_start_period[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_r_start_period{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_r_start_temp {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_r_start_temp[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_r_start_temp{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_add_sens_bpass {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_add_sens_bpass[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_add_sens_bpass{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_alarm {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_alarm[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_alarm{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_arm {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_arm[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_arm{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_arm_auth_wait {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_arm_auth_wait[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_arm_auth_wait{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_arm_moving_pb {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_arm_moving_pb[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_arm_moving_pb{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_door {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_door[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_door{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_hbrake {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_hbrake[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_hbrake{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_hfree {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_hfree[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_hfree{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_hijack {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_hijack[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_hijack{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_hood {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_hood[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_hood{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_ign {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_ign[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_ign{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_neutral {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_neutral[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_neutral{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_out {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_out[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_out{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_pbrake {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_pbrake[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_pbrake{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_run {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_run[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_run{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_r_start {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_r_start[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_r_start{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_r_start_timer {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_r_start_timer[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_r_start_timer{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_shock_bpass {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_shock_bpass[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_shock_bpass{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_tilt_bpass {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_tilt_bpass[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_tilt_bpass{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_trunk {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_trunk[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_trunk{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_ts {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_ts[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_ts{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_valet {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_valet[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_valet{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_webasto {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_webasto[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_webasto{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_state_webasto_timer {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_state_webasto_timer[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_state_webasto_timer{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_status {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_status[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_status{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                        <item_prototype>
                            <name>starline_user_fuel_litres {#ALIAS}</name>
                            <type>DEPENDENT</type>
                            <key>starline_user_fuel_litres[{#ALIAS},{#DEVICE_ID}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <application_prototypes>
                                <application_prototype>
                                    <name>{#ALIAS}</name>
                                </application_prototype>
                            </application_prototypes>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>starline_user_fuel_litres{alias=&quot;{#ALIAS}&quot;,device_id=&quot;{#DEVICE_ID}&quot;}
</params>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                    </item_prototypes>
                    <master_item>
                        <key>starline_main</key>
                    </master_item>
                    <lld_macro_paths>
                        <lld_macro_path>
                            <lld_macro>{#ALIAS}</lld_macro>
                            <path>$.labels.alias</path>
                        </lld_macro_path>
                        <lld_macro_path>
                            <lld_macro>{#DEVICE_ID}</lld_macro>
                            <path>$.labels.device_id</path>
                        </lld_macro_path>
                    </lld_macro_paths>
                    <preprocessing>
                        <step>
                            <type>PROMETHEUS_TO_JSON</type>
                            <params>starline_status{alias=~&quot;.*&quot;,device_id=~&quot;.*&quot;}</params>
                        </step>
                    </preprocessing>
                </discovery_rule>
                <discovery_rule>
                    <name>starline_discovery_2</name>
                    <type>DEPENDENT</type>
                    <key>starline_discovery_2</key>
                    <delay>0</delay>
                    <item_prototypes>
                        <item_prototype>
                            <name>http_requests {#CODE} {#MESSAGE} {#URL}</name>
                            <type>DEPENDENT</type>
                            <key>http_requests[{#CODE},{#MESSAGE},{#URL}]</key>
                            <delay>0</delay>
                            <history>365d</history>
                            <trends>0</trends>
                            <value_type>FLOAT</value_type>
                            <applications>
                                <application>
                                    <name>System metrics</name>
                                </application>
                            </applications>
                            <preprocessing>
                                <step>
                                    <type>PROMETHEUS_PATTERN</type>
                                    <params>http_requests_total{code=&quot;{#CODE}&quot;,message=&quot;{#MESSAGE}&quot;,url=&quot;{#URL}&quot;}
</params>
                                </step>
                                <step>
                                    <type>SIMPLE_CHANGE</type>
                                    <params/>
                                </step>
                            </preprocessing>
                            <master_item>
                                <key>starline_main</key>
                            </master_item>
                        </item_prototype>
                    </item_prototypes>
                    <master_item>
                        <key>starline_main</key>
                    </master_item>
                    <lld_macro_paths>
                        <lld_macro_path>
                            <lld_macro>{#CODE}</lld_macro>
                            <path>$.labels.code</path>
                        </lld_macro_path>
                        <lld_macro_path>
                            <lld_macro>{#MESSAGE}</lld_macro>
                            <path>$.labels.message</path>
                        </lld_macro_path>
                        <lld_macro_path>
                            <lld_macro>{#URL}</lld_macro>
                            <path>$.labels.url</path>
                        </lld_macro_path>
                    </lld_macro_paths>
                    <preprocessing>
                        <step>
                            <type>PROMETHEUS_TO_JSON</type>
                            <params>http_requests_total{code=~&quot;.*&quot;,message=~&quot;.*&quot;,url=~&quot;.*&quot;}</params>
                        </step>
                    </preprocessing>
                </discovery_rule>
            </discovery_rules>
            <macros>
                <macro>
                    <macro>{$HOST_PORT}</macro>
                    <value>8180</value>
                </macro>
            </macros>
        </template>
    </templates>
</zabbix_export>
